/*
 *  This file is part of the SIRIUS libraries for analyzing MS and MS/MS data
 *
 *  Copyright (C) 2024 Bright Giant GmbH
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along with SIRIUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 *  https://openapi-generator.tech
 *  Do not edit the class manually.
 */


package io.sirius.ms.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.sirius.ms.sdk.model.ProjectType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * ProjectInfo
 */
@JsonPropertyOrder({
  ProjectInfo.JSON_PROPERTY_PROJECT_ID,
  ProjectInfo.JSON_PROPERTY_LOCATION,
  ProjectInfo.JSON_PROPERTY_DESCRIPTION,
  ProjectInfo.JSON_PROPERTY_TYPE,
  ProjectInfo.JSON_PROPERTY_COMPATIBLE,
  ProjectInfo.JSON_PROPERTY_NUM_OF_FEATURES,
  ProjectInfo.JSON_PROPERTY_NUM_OF_COMPOUNDS,
  ProjectInfo.JSON_PROPERTY_NUM_OF_BYTES
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0")
public class ProjectInfo {
  public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
  @jakarta.annotation.Nullable
  private String projectId;

  public static final String JSON_PROPERTY_LOCATION = "location";
  @jakarta.annotation.Nullable
  private String location;

  public static final String JSON_PROPERTY_DESCRIPTION = "description";
  @jakarta.annotation.Nullable
  private String description;

  public static final String JSON_PROPERTY_TYPE = "type";
  @jakarta.annotation.Nullable
  private ProjectType type;

  public static final String JSON_PROPERTY_COMPATIBLE = "compatible";
  @jakarta.annotation.Nullable
  private Boolean compatible;

  public static final String JSON_PROPERTY_NUM_OF_FEATURES = "numOfFeatures";
  @jakarta.annotation.Nullable
  private Integer numOfFeatures;

  public static final String JSON_PROPERTY_NUM_OF_COMPOUNDS = "numOfCompounds";
  @jakarta.annotation.Nullable
  private Integer numOfCompounds;

  public static final String JSON_PROPERTY_NUM_OF_BYTES = "numOfBytes";
  @jakarta.annotation.Nullable
  private Long numOfBytes;

  public ProjectInfo() {
  }

  public ProjectInfo projectId(@jakarta.annotation.Nullable String projectId) {
    
    this.projectId = projectId;
    return this;
  }

  /**
   * a user selected unique name of the project for easy access.
   * @return projectId
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getProjectId() {
    return projectId;
  }


  @JsonProperty(JSON_PROPERTY_PROJECT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setProjectId(@jakarta.annotation.Nullable String projectId) {
    this.projectId = projectId;
  }

  public ProjectInfo location(@jakarta.annotation.Nullable String location) {
    
    this.location = location;
    return this;
  }

  /**
   * storage location of the project.
   * @return location
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LOCATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getLocation() {
    return location;
  }


  @JsonProperty(JSON_PROPERTY_LOCATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLocation(@jakarta.annotation.Nullable String location) {
    this.location = location;
  }

  public ProjectInfo description(@jakarta.annotation.Nullable String description) {
    
    this.description = description;
    return this;
  }

  /**
   * Description of this project.
   * @return description
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getDescription() {
    return description;
  }


  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDescription(@jakarta.annotation.Nullable String description) {
    this.description = description;
  }

  public ProjectInfo type(@jakarta.annotation.Nullable ProjectType type) {
    
    this.type = type;
    return this;
  }

  /**
   * Get type
   * @return type
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public ProjectType getType() {
    return type;
  }


  @JsonProperty(JSON_PROPERTY_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setType(@jakarta.annotation.Nullable ProjectType type) {
    this.type = type;
  }

  public ProjectInfo compatible(@jakarta.annotation.Nullable Boolean compatible) {
    
    this.compatible = compatible;
    return this;
  }

  /**
   * Indicates whether computed results (e.g. fingerprints, compounds classes) are compatible with the backend.  If true project is up-to-date and there are no restrictions regarding usage.  If false project is incompatible and therefore \&quot;read only\&quot; until the incompatible results have been removed. See updateProject endpoint for further information  If NULL the information has not been requested.
   * @return compatible
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_COMPATIBLE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isCompatible() {
    return compatible;
  }


  @JsonProperty(JSON_PROPERTY_COMPATIBLE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCompatible(@jakarta.annotation.Nullable Boolean compatible) {
    this.compatible = compatible;
  }

  public ProjectInfo numOfFeatures(@jakarta.annotation.Nullable Integer numOfFeatures) {
    
    this.numOfFeatures = numOfFeatures;
    return this;
  }

  /**
   * Number of features (aligned over runs) in this project. If NULL, information has not been requested (See OptField &#39;sizeInformation&#39;).
   * @return numOfFeatures
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NUM_OF_FEATURES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getNumOfFeatures() {
    return numOfFeatures;
  }


  @JsonProperty(JSON_PROPERTY_NUM_OF_FEATURES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNumOfFeatures(@jakarta.annotation.Nullable Integer numOfFeatures) {
    this.numOfFeatures = numOfFeatures;
  }

  public ProjectInfo numOfCompounds(@jakarta.annotation.Nullable Integer numOfCompounds) {
    
    this.numOfCompounds = numOfCompounds;
    return this;
  }

  /**
   * Number of compounds (group of ion identities) in this project. If NULL, Information has not been requested (See OptField &#39;sizeInformation&#39;) or might be unavailable for this project type.
   * @return numOfCompounds
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NUM_OF_COMPOUNDS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Integer getNumOfCompounds() {
    return numOfCompounds;
  }


  @JsonProperty(JSON_PROPERTY_NUM_OF_COMPOUNDS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNumOfCompounds(@jakarta.annotation.Nullable Integer numOfCompounds) {
    this.numOfCompounds = numOfCompounds;
  }

  public ProjectInfo numOfBytes(@jakarta.annotation.Nullable Long numOfBytes) {
    
    this.numOfBytes = numOfBytes;
    return this;
  }

  /**
   * Size in Bytes this project consumes on disk If NULL, Information has not been requested (See OptField &#39;sizeInformation&#39;).
   * @return numOfBytes
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NUM_OF_BYTES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Long getNumOfBytes() {
    return numOfBytes;
  }


  @JsonProperty(JSON_PROPERTY_NUM_OF_BYTES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNumOfBytes(@jakarta.annotation.Nullable Long numOfBytes) {
    this.numOfBytes = numOfBytes;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProjectInfo projectInfo = (ProjectInfo) o;
    return Objects.equals(this.projectId, projectInfo.projectId) &&
        Objects.equals(this.location, projectInfo.location) &&
        Objects.equals(this.description, projectInfo.description) &&
        Objects.equals(this.type, projectInfo.type) &&
        Objects.equals(this.compatible, projectInfo.compatible) &&
        Objects.equals(this.numOfFeatures, projectInfo.numOfFeatures) &&
        Objects.equals(this.numOfCompounds, projectInfo.numOfCompounds) &&
        Objects.equals(this.numOfBytes, projectInfo.numOfBytes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(projectId, location, description, type, compatible, numOfFeatures, numOfCompounds, numOfBytes);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProjectInfo {\n");
    sb.append("    projectId: ").append(toIndentedString(projectId)).append("\n");
    sb.append("    location: ").append(toIndentedString(location)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    compatible: ").append(toIndentedString(compatible)).append("\n");
    sb.append("    numOfFeatures: ").append(toIndentedString(numOfFeatures)).append("\n");
    sb.append("    numOfCompounds: ").append(toIndentedString(numOfCompounds)).append("\n");
    sb.append("    numOfBytes: ").append(toIndentedString(numOfBytes)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

